package cn.jbolt.ec.member;

import cn.jbolt.base.JBoltBaseService;
import cn.jbolt.common.model.BecRetailerMemberBalance;
import com.jfinal.kit.Kv;
import com.jfinal.plugin.activerecord.Record;

import java.util.List;

/**
 * @author xieguo
 */
public class RetailerMemberBalanceService extends JBoltBaseService<BecRetailerMemberBalance> {
    @Override
    protected BecRetailerMemberBalance dao() {
        return new BecRetailerMemberBalance().dao();
    }

    /**
     * 获取会员商家余额
     * @param member_id
     * @return
     */
    public List<Record> get_member_retailer_balance(Integer member_id){
        Kv param=Kv.by("member_id",member_id);
        return dbTemplate("ec.mall.shop.member.get_retailer_balance",param).find();
    }
}
